package com.zll.template.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

    @ResponseBody
    @GetMapping("test")
    public String test() {
        return "success";
    }

    @RequestMapping("to")
    public String index() {
        return "index.jsp";
    }
}
